﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace H.KML.Mouses
{
    /// <summary>
    /// 鼠标右键
    /// </summary>
    public class KMRMouse : KMMouse
    {
        public KMRMouse(KMHand hand) : base(hand)
        {

        }

        ///<inheritdoc/>
        public override bool Click()
        {
            return _Hand._KM.RightClick(1) > 0;
        }

        ///<inheritdoc/>
        public override bool Down()
        {
            return _Hand._KM.RightDown() == 1;
        }

        ///<inheritdoc/>
        public override bool Up()
        {
            return _Hand._KM.RightUp() == 1;
        }

        ///<inheritdoc/>
        public override bool DoubleClick()
        {
            return _Hand._KM.RightDoubleClick(1) > 0;
        }
    }
}
